<template>
	<view class="flex flex-direction align-center gap">
		<button>{{ data }}</button>
		<button @click="method_name">method_name</button>
	</view>
</template>

<script>
var vk = uni.vk;

export default {
	data() {
		// 页面数据变量
		return {
			data: '',

			form1: {},
			scrollTop: 0,

			list: [],

			tabList: []
		};
	},
	onPageScroll(e) {
		this.scrollTop = e.scrollTop;
	},

	onLoad(options = {}) {
		vk = uni.vk;
		this.method_name();
	},

	onReady() {},

	onShow() {},

	onHide() {},

	onShareAppMessage(options) {},

	methods: {
		async method_name() {
			vk.callFunction({
				url: 'client/pub.index.getdaily',
				title: '请求中...',
				data: {
					t: '你是gpt几，强项是做什么，直接回复正文'
				},
				success: (data) => {
					this.data = data.data.reply;
				}
			});
		}
	},

	watch: {},

	computed: {}
};
</script>
<style lang="scss" scoped>
.confirm {
	width: 622rpx;
	height: 90rpx;
	background-color: #33ff84;
	// background-image: url(https://dsfw.oss-cn-shanghai.aliyuncs.com/baolian/202311061434466.png);
}

.input {
	width: 622rpx;
	height: 90rpx;
	background-image: url(https://dsfw.oss-cn-shanghai.aliyuncs.com/baolian/202311061434466.png);
}
</style>
